package com.suse.jd_system_server.service.impl;

import com.suse.jd_system_server.annotation.logWeaving;
import com.suse.jd_system_server.dao.OrdersDao_rp;
import com.suse.jd_system_server.entity.Orders_rp;
import com.suse.jd_system_server.service.OrdersService_rp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class OrdersServiceImpl_rp implements OrdersService_rp {
    @Autowired
    OrdersDao_rp ordersDao;
    @Override
    public List<Orders_rp> getOrdersList(long user_id) {
        return  ordersDao.getOrdersList(user_id);
    }

    @Override
    public List<Orders_rp> getOrderById(long order_id) {
        return ordersDao.getOrderById(order_id);
    }
    @Override
    public List<Orders_rp> searchList(Map<String, Object> param) {
        return ordersDao.searchList(param);
    }

    @Override
    @logWeaving("对订单表的订单状态进行修改操作")
    public Integer cancelOrder(Map<String,Object> param) {
        return ordersDao.cancelOrder(param);
    }
}
